package com.guangyunl.j_extends;
// 测试方法
public class Test10 {
    public static void main(String[] args) {
        Teacher teacher = new Teacher();
        teacher.setName("张三");
        teacher.setAge(18);
        System.out.println("teacher.getName() + teacher.getAge() = " + teacher.getName()+ teacher.getAge());

        System.out.println("=================================");
        Manager manager = new Manager("李四",20);
        System.out.println("manager.getName() + manager.getAge() = " + manager.getName() + manager.getAge());
        
    }
}
/*
teacher.getName() + teacher.getAge() = 张三18
=================================
manager.getName() + manager.getAge() = 李四20
 */